/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.ws.modelo;


import java.util.List;
import javax.persistence.*;

@Entity
@DiscriminatorValue("GE")
public class Gerente extends Representante {

    @OneToMany(mappedBy="gerente",cascade={CascadeType.MERGE,CascadeType.REFRESH},fetch=FetchType.LAZY)
    private List<Supervisor> supervisores;

    public Gerente() {
    }


    public void setSupervisores(List<Supervisor> supervisores) {
        this.supervisores = supervisores;
    }

    public List<Supervisor> getSupervisores() {
        return supervisores;
    }


}